/**
 * 
 */
package org.xlab.baseframework.test.platform.domain;

import org.xlab.baseframework.domain.AbstractNormalVersionControlDomainObject;
import org.xlab.baseframework.test.platform.domain.enumerate.SynchronizedInditify;

/**
 * @author makubex
 * 
 */
public class BizTransactionLog extends AbstractNormalVersionControlDomainObject {

	/**
	 * @serialField
	 */
	private static final long serialVersionUID = -4592839323852181640L;

	private Long id;
	private SystemSession sessionId;
	private String commandId;
	private String deviceId;
	private String token;
	private String epcNo;
	private String location;
	private Integer qty;
	private String lotNo;
	private SynchronizedInditify synchronizedInd;
	
	/**
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BizTransactionLog other = (BizTransactionLog) obj;
		if (deviceId == null) {
			if (other.deviceId != null)
				return false;
		} else if (!deviceId.equals(other.deviceId))
			return false;
		if (sessionId == null) {
			if (other.sessionId != null)
				return false;
		} else if (!sessionId.equals(other.sessionId))
			return false;
		if (token == null) {
			if (other.token != null)
				return false;
		} else if (!token.equals(other.token))
			return false;
		return true;
	}
	/**
	 * @return the commandId
	 */
	public String getCommandId() {
		return commandId;
	}
	/**
	 * @return the deviceId
	 */
	public String getDeviceId() {
		return deviceId;
	}
	/**
	 * @return the epcNo
	 */
	public String getEpcNo() {
		return epcNo;
	}
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @return the location
	 */
	public String getLocation() {
		return location;
	}
	/**
	 * @return the lotNo
	 */
	public String getLotNo() {
		return lotNo;
	}
	/**
	 * @return the qty
	 */
	public Integer getQty() {
		return qty;
	}
	/**
	 * @return the sessionId
	 */
	public SystemSession getSessionId() {
		return sessionId;
	}
	/**
	 * @return the synchronizedInd
	 */
	public SynchronizedInditify getSynchronizedInd() {
		return synchronizedInd;
	}
	/**
	 * @return the token
	 */
	public String getToken() {
		return token;
	}
	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((deviceId == null) ? 0 : deviceId.hashCode());
		result = prime * result
				+ ((sessionId == null) ? 0 : sessionId.hashCode());
		result = prime * result + ((token == null) ? 0 : token.hashCode());
		return result;
	}
	/**
	 * @param commandId the commandId to set
	 */
	public void setCommandId(String commandId) {
		this.commandId = commandId;
	}
	/**
	 * @param deviceId the deviceId to set
	 */
	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}
	/**
	 * @param epcNo the epcNo to set
	 */
	public void setEpcNo(String epcNo) {
		this.epcNo = epcNo;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * @param location the location to set
	 */
	public void setLocation(String location) {
		this.location = location;
	}
	/**
	 * @param lotNo the lotNo to set
	 */
	public void setLotNo(String lotNo) {
		this.lotNo = lotNo;
	}
	/**
	 * @param qty the qty to set
	 */
	public void setQty(Integer qty) {
		this.qty = qty;
	}
	/**
	 * @param sessionId the sessionId to set
	 */
	public void setSessionId(SystemSession sessionId) {
		this.sessionId = sessionId;
	}
	
	/**
	 * @param synchronizedInd the synchronizedInd to set
	 */
	public void setSynchronizedInd(SynchronizedInditify synchronizedInd) {
		this.synchronizedInd = synchronizedInd;
	}
	
	/**
	 * @param token the token to set
	 */
	public void setToken(String token) {
		this.token = token;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return "BizTransactionLog [id=" + id + ", sessionId=" + sessionId
				+ ", commandId=" + commandId + ", deviceId=" + deviceId
				+ ", token=" + token + ", epcNo=" + epcNo + ", location="
				+ location + ", qty=" + qty + ", lotNo=" + lotNo
				+ ", synchronizedInd=" + synchronizedInd + "]";
	}
}
